/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lab6.Home;

/**
 *
 * @author THIEN
 */
public class Computer {

    int id;
    String name;
    double price;

    public Computer(int id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public String toString() {
        return "This computer has id is: " + id + ", name is: " + name + " and price is " + price+"$";
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }
}
